package com.evan.common.pojo;

import com.evan.common.bit.ReturnResEnum;

public class Result {

    private ReturnResEnum code;
    private Object data;
    private String msg;

    public Result() {
    }

    public Result(ReturnResEnum code){
        this.code = code;
    }

    public Result(ReturnResEnum code,Object data){
        this.code = code;
        this.data = data;
    }

    public Result(ReturnResEnum code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(ReturnResEnum code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public ReturnResEnum getCode() {
        return code;
    }

    public void setCode(ReturnResEnum code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
